ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.Viewer.Common.Model Namespace / ActiveModelListenExtensions Class / Observe Method / Observe<T,TI>(T,Expression<Func<T,TI>>,Action<TI>,Action<TI>) Method
Action for old value
Action for new value

In This Topic
    Observe<T,TI>(T,Expression<Func<T,TI>>,Action<TI>,Action<TI>) Method
    In This Topic
    More sofisticated changes listener implementation
    Syntax
    'Declaration
     
    Public Overloads Shared Function Observe
        (Of T As INotifyPropertyChanged,
         TI)( _
       ByVal obj As T, _
       ByVal getterExpr As Expression(Of Func(Of T,TI)), _
       ByVal leave As Action(Of TI), _
       ByVal enter As Action(Of TI) _
    ) As IDisposable
    public static IDisposable Observe<T,TI>( 
       T obj,
       Expression<Func<T,TI>> getterExpr,
       Action<TI> leave,
       Action<TI> enter
    )
    where T: INotifyPropertyChanged

    Parameters

    obj
    getterExpr
    leave
    Action for old value
    enter
    Action for new value

    Type Parameters

    T
    TI
    See Also